package com.eliota.service.impl;

import com.eliota.entity.Repair;
import com.eliota.mapper.RepairMapper;
import com.eliota.service.RepairService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MG
 * @since 2023-04-03
 */
@Service
public class RepairServiceImpl extends ServiceImpl<RepairMapper, Repair> implements RepairService {

    @Resource
    public RepairMapper repairMapper;

    @Override
    public void statusChange(Integer repairId) {
        repairMapper.statusChange(repairId);
    }

    @Override
    public void deleteBatchByIds(List<Integer> ids) {
        for (Integer repairId : ids) {
            repairMapper.statusChange(repairId);
        }
    }
}
